package com.ming.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *@Author:何元才
 *@Desc:
 *@data:2021-05-17 04:43
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "`comment`")
public class Comment implements Serializable {
    /**
     * 评论ID
     */
    @TableId(value = "comment_id", type = IdType.AUTO)
    private Integer commentId;

    /**
     * 内容
     */
    @TableField(value = "mean")
    private String mean;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 评论人
     */
    @TableField(value = "user_name")
    private String userName;

    /**
     * 逻辑删除
     */
    @TableField(value = "deleted")
    private Integer deleted;

    private static final long serialVersionUID = 1L;

    public static final String COL_COMMENT_ID = "comment_id";

    public static final String COL_MEAN = "mean";

    public static final String COL_CEATE_TIME = "ceate_time";

    public static final String COL_USER_NAME = "user_name";

    public static final String COL_DELETED = "deleted";
}